package com.xm.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by wzl on 2018/4/2.
 * 设备信息表
 */
public class Device implements Serializable {
    //主键
    private Integer deviceId;
    //dtuId
    private Integer dtuId;
    //设备编码
    private String code;
    //设备名称
    private String name;
    //地址码
    private Integer addrCode;
    //协议类型:1-流量计MOD51,2-开封流量计4.2,3-宏沐压力表4-ct v1.1, 5-ct v1.2
    private Short protocolType;
    //计量系数
    private Float factor;
    //水价
    private Float price;
    //是否启用
    private Integer isEnabled;
    //设备状态:0异常,1 -正常
    private Short sts;
    //说明
    private String remark;
    //创建时间
    private Date createTime;
    //状态更新时间
    private Date updateTime;
    //当前流量
    private Float curFlow;
    //当前流速
    private Float curSpeed;
    //当前正向总量
    private Float curTotalPositive;
    //当前反向总量
    private Float curTotalNegative;
    //当前异常信息:000001 (1) 上限报警
    //   000010 (2) 下限报警 ,
    //   000100 (4) 空管报警 ,
    //   001000 (8) 系统报警 ,
    //   010000 (16) 励磁报警 ,
    //   100000 (32) 电极报警
    private String curAlarm;
    //当前压力(压力表)
    private Float curPressure;
    //当前温度(压力表)
    private Float curTemperature;
    //变化率
    private Float rateAlarm;
    //绝对值上限
    private Float absAlarmUpperLimit;
    //绝对值下限
    private Float absAlarmLowerLimit;
    //是否开启系统报警
    private Integer isSysAlarmOn;
    //报警阀值上限
    private Float alarmThresholdUpperLimit;
    //报警阀值下限
    private Float alarmThresholdLowerLimit;
    //通讯异常时限(秒):在该时间段内没有采集到数据则发生报警,null或0 表示不启用
    private Integer connFailLimitSec;
    //是否开启流量采集(0否、1是)
    private Integer isFlowCollectOn;
    //是否开启流速采集(0否、1是)
    private Integer isSpeedCollectOn;
    //是否开启总量采集(0否、1是)
    private Integer isAmountCollectOn;
    //是否开启警报采集(0否、1是)
    private Integer isAlarmCollectOn;
    //是否开启压力采集(0否、1是)
    private Integer isPressureCollectOn;
    //上次报警上限
    private BigDecimal afterSS;
    //上次报警下限
    private BigDecimal aferXX;
    //绝对值报警 0:报警 1:正常
    private Integer ifAlarm;
    //dtu名称（查询用）
    private String dtuCode;
    //设备地址（查询用）
    private String address;
    //设备所在经度（查询用）
    private String lng;
    //设备所在纬度（查询用）
    private String lat;
    //材质（查询用）
    private String quality;
    //规格（查询用）
    private String spec;
    //年份（查询用）
    private String year;
    //年龄（查询用）
    private String age;
    //责任人（查询用）
    private String personLiable;
    //部门（查询用）
    private String department;
    //分页查询参数（查询用）
    private Integer start;
    //分页查询参数（查询用）
    private Integer length;
    //设备更新时间（查询用）
    private String deviceUpdateTime;
    //用戶id（查询用）
    private Integer userId;


    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getDtuId() {
        return dtuId;
    }

    public void setDtuId(Integer dtuId) {
        this.dtuId = dtuId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAddrCode() {
        return addrCode;
    }

    public void setAddrCode(Integer addrCode) {
        this.addrCode = addrCode;
    }

    public Short getProtocolType() {
        return protocolType;
    }

    public void setProtocolType(Short protocolType) {
        this.protocolType = protocolType;
    }

    public Float getFactor() {
        return factor;
    }

    public void setFactor(Float factor) {
        this.factor = factor;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Integer isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Short getSts() {
        return sts;
    }

    public void setSts(Short sts) {
        this.sts = sts;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Float getCurFlow() {
        return curFlow;
    }

    public void setCurFlow(Float curFlow) {
        this.curFlow = curFlow;
    }

    public Float getCurSpeed() {
        return curSpeed;
    }

    public void setCurSpeed(Float curSpeed) {
        this.curSpeed = curSpeed;
    }

    public Float getCurTotalPositive() {
        return curTotalPositive;
    }

    public void setCurTotalPositive(Float curTotalPositive) {
        this.curTotalPositive = curTotalPositive;
    }

    public Float getCurTotalNegative() {
        return curTotalNegative;
    }

    public void setCurTotalNegative(Float curTotalNegative) {
        this.curTotalNegative = curTotalNegative;
    }

    public String getCurAlarm() {
        return curAlarm;
    }

    public void setCurAlarm(String curAlarm) {
        this.curAlarm = curAlarm;
    }

    public Float getCurPressure() {
        return curPressure;
    }

    public void setCurPressure(Float curPressure) {
        this.curPressure = curPressure;
    }

    public Float getCurTemperature() {
        return curTemperature;
    }

    public void setCurTemperature(Float curTemperature) {
        this.curTemperature = curTemperature;
    }

    public Float getRateAlarm() {
        return rateAlarm;
    }

    public void setRateAlarm(Float rateAlarm) {
        this.rateAlarm = rateAlarm;
    }

    public Float getAbsAlarmUpperLimit() {
        return absAlarmUpperLimit;
    }

    public void setAbsAlarmUpperLimit(Float absAlarmUpperLimit) {
        this.absAlarmUpperLimit = absAlarmUpperLimit;
    }

    public Float getAbsAlarmLowerLimit() {
        return absAlarmLowerLimit;
    }

    public void setAbsAlarmLowerLimit(Float absAlarmLowerLimit) {
        this.absAlarmLowerLimit = absAlarmLowerLimit;
    }

    public Integer getIsSysAlarmOn() {
        return isSysAlarmOn;
    }

    public void setIsSysAlarmOn(Integer isSysAlarmOn) {
        this.isSysAlarmOn = isSysAlarmOn;
    }

    public Float getAlarmThresholdUpperLimit() {
        return alarmThresholdUpperLimit;
    }

    public void setAlarmThresholdUpperLimit(Float alarmThresholdUpperLimit) {
        this.alarmThresholdUpperLimit = alarmThresholdUpperLimit;
    }

    public Float getAlarmThresholdLowerLimit() {
        return alarmThresholdLowerLimit;
    }

    public void setAlarmThresholdLowerLimit(Float alarmThresholdLowerLimit) {
        this.alarmThresholdLowerLimit = alarmThresholdLowerLimit;
    }

    public Integer getConnFailLimitSec() {
        return connFailLimitSec;
    }

    public void setConnFailLimitSec(Integer connFailLimitSec) {
        this.connFailLimitSec = connFailLimitSec;
    }

    public Integer getIsFlowCollectOn() {
        return isFlowCollectOn;
    }

    public void setIsFlowCollectOn(Integer isFlowCollectOn) {
        this.isFlowCollectOn = isFlowCollectOn;
    }

    public Integer getIsSpeedCollectOn() {
        return isSpeedCollectOn;
    }

    public void setIsSpeedCollectOn(Integer isSpeedCollectOn) {
        this.isSpeedCollectOn = isSpeedCollectOn;
    }

    public Integer getIsAmountCollectOn() {
        return isAmountCollectOn;
    }

    public void setIsAmountCollectOn(Integer isAmountCollectOn) {
        this.isAmountCollectOn = isAmountCollectOn;
    }

    public Integer getIsAlarmCollectOn() {
        return isAlarmCollectOn;
    }

    public void setIsAlarmCollectOn(Integer isAlarmCollectOn) {
        this.isAlarmCollectOn = isAlarmCollectOn;
    }

    public Integer getIsPressureCollectOn() {
        return isPressureCollectOn;
    }

    public void setIsPressureCollectOn(Integer isPressureCollectOn) {
        this.isPressureCollectOn = isPressureCollectOn;
    }

    public BigDecimal getAfterSS() {
        return afterSS;
    }

    public void setAfterSS(BigDecimal afterSS) {
        this.afterSS = afterSS;
    }

    public BigDecimal getAferXX() {
        return aferXX;
    }

    public void setAferXX(BigDecimal aferXX) {
        this.aferXX = aferXX;
    }

    public Integer getIfAlarm() {
        return ifAlarm;
    }

    public void setIfAlarm(Integer ifAlarm) {
        this.ifAlarm = ifAlarm;
    }

    public String getDtuCode() {
        return dtuCode;
    }

    public void setDtuCode(String dtuCode) {
        this.dtuCode = dtuCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getPersonLiable() {
        return personLiable;
    }

    public void setPersonLiable(String personLiable) {
        this.personLiable = personLiable;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getDeviceUpdateTime() {
        return deviceUpdateTime;
    }

    public void setDeviceUpdateTime(String deviceUpdateTime) {
        this.deviceUpdateTime = deviceUpdateTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
